package com.beta.auth.config;

import org.springframework.cloud.client.discovery.event.HeartbeatEvent;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Predicate;

@Configuration
public class DubboConfig {
    /**
     * 解决服务发现问题
     *
     * @return
     */
    @Bean
    public Predicate<HeartbeatEvent> heartBeatEventChangePredicate() {
        return event -> true;
    }
}
